<template>
</template>

<script>
  import Vue from "vue";

  export default {
    data () {
      return {
        loading: false,
        post: null,
        error: null
      }
    },
    created () {
      // 组件创建完后获取数据，
      // 此时 data 已经被 observed 了
      this.fetchData()
    },
    methods: {
      fetchData () {
        // let token = Vue.cookie.get('ui_t')
        // console.log('***toke token='+token)
        // this.$cookie.set('token', token)
        this.$router.replace({ name: 'home' })
      }
    }
  }
</script>

<style lang="scss">

</style>
